package com.jijia.webbase.domain.params;


import lombok.Data;
import org.jetbrains.annotations.NotNull;

import javax.validation.constraints.Email;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
public class Test {

    @NotNull("name不能为null")
    @NotBlank(message = "name不能为空白字符串")
    private String name;
    @Min(value = 1,message = "age不能小于1")
    @Max(value = 100,message = "age不能大于100")
    private Integer age;
    @NotBlank(message = "sex不能为空白字符串")
    private String sex;
    @NotBlank(message = "address不能为空白字符串")
    private String address;
    @Email(message = "email必须是邮箱格式")
    private String email;
}
